package fschmidt.html;


public final class HtmlCdata {
	public final String text;

	public HtmlCdata(String text) {
		this.text = text;
	}

	public String toString() {
		return "<![CDATA["+text+"]]>";
	}

	public boolean equals(Object obj) {
		if( obj == this )
			return true;
		if( !(obj instanceof HtmlCdata) )
			return false;
		HtmlCdata m = (HtmlCdata)obj;
		return m.text.equals(text);
	}

	public int hashCode() {
		return text.hashCode();
	}

}
